<html xmlns:th="http://www.thymeleaf.org"
	  xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<div th:fragment="daymanagepaging">
	<link rel="stylesheet"  th:href="@{/assets/css/layui.css}"/>
	<link rel="stylesheet"  th:href="@{/assets/css/view.css}"/>
<div class="bgc-w box box-primary">
	<!--盒子头-->
	<div class="box-header">
		<h3 class="box-title">
			<a th:href="@{/dayedit}" class="label label-success" style="padding: 5px;">
				<span class="glyphicon glyphicon-plus"></span> 新增
			</a>
		</h3>
		<div class="box-tools">
			<form th:action="@{/daymanage}" method="post">
			<div class="input-group" style="width: 150px;">
				<input type="text" class="form-control input-sm" name="title" th:value="${title}" placeholder="按标题查找..." />
				<div class="input-group-btn" style="top:-1px;">
						<!--				<a class="btn btn-sm btn-default glyphicon glyphicon-search btn-change baseKetsubmit"></a>-->
					<input type="submit" class="btn btn-sm btn-default glyphicon glyphicon-search btn-change baseKetsubmit" value="查询">
				</div>
			</div>
			</form>
		</div>
	</div>
	<!--盒子身体-->
	<div class="box-body no-padding">
		<div class="table-responsive">
			<table class="table table-hover table-striped">
				<tr>
					
					<th scope="col">类型</th>
					<th scope="col">标题</th>
					<th scope="col">发布时间</th>
					<th scope="col">发布人</th>
					<th scope="col">部门</th>
					<th scope="col">状态</th>
					<th scope="col">操作</th>
				</tr>
				<tr th:each="schedule:${scheduleLists}">
						<td><span th:text="${#typeDict.getTypeName('aoa_schedule_list',schedule.type)}"></span></td>
						<td><span th:text="${schedule.title}"></span></td>
						<td><span th:text="${#dates.format(schedule.createTime,'yyyy-MM-dd HH:mm:ss')}"></span></td>
						<td><span th:text="${schedule.aoaUser.userName}"></span></td>
						<td><span th:text="${schedule.aoaDept.deptName}"></span></td>
						<td><div class="label" th:classappend="${#statusDict.getStatusColor('aoa_schedule_list',schedule.status)}" th:text="${#statusDict.getStatusName('aoa_schedule_list',schedule.status)}"></div></td>
						<td>
							<a  th:href="@{/dayedit(rcId=${schedule.rcId})}" class="label xiugai">
								<span class="glyphicon glyphicon-edit"></span> 修改</a>
							<a onclick="{return confirm('删除该记录将不能恢复，确定删除吗？');};"
								href="dayremove?rcid=${schedule.rcId}" class="label shanchu">
								<span class="glyphicon glyphicon-remove"></span> 删除</a>
						</td>
					</tr>
			</table>
		</div>
	</div>
	<!--盒子尾-->
	<div class="container">
		<div class="row text-center">
			<div class="col-md-12">
				<ul class="pagination">
					<li><a th:class="${currentPage eq 1 ? 'btn disabled' : ''}" href="javascript:;" th:href="@{/daymanage(page=1)}">首页</a></li>
					<li><a th:class="${currentPage eq 1 ? 'btn disabled' : ''}" href="javascript:;" th:href="@{/daymanage(page=${currentPage}-1)}">上一页</a></li>
					<li th:class="${page eq currentPage} ? 'active' : ''" th:each="page:${#numbers.sequence(1,totalPage)}">
						<a href="javascript:;" th:href="@{/daymanage(page=${page})}" th:text="${page}">1</a>
					</li>
					<li><a th:class="${currentPage eq totalPage ? 'btn disabled' : ''}" href="javascript:;" th:href="@{/daymanage(page=${currentPage}+1)}">下一页</a></li>
					<li><a th:class="${currentPage eq totalPage ? 'btn disabled' : ''}" href="javascript:;" th:href="@{/daymanage(page=${totalPage})}">尾页</a></li>
					<li><a style="border: 0px;margin-left: 0px;">当前页<span th:text="${currentPage}"></span>/<span th:text="${totalPage}"></span>总页</a></li>
				</ul>
			</div>
		</div>
	</div>
</div>
</div>
<script src="../assets/layui.all.js" th:src="@{/assets/layui.all.js}"></script>
<script type="text/javascript" th:src="@{/easyui/jquery.min.js}"></script>
</html>